package me.keiwu.user.dao;

import me.keiwu.user.domain.MedalPresent;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * Created by kei on 31/01/2018.
 */
public interface MedalPresentDao extends JpaRepository<MedalPresent, Integer>, JpaSpecificationExecutor<MedalPresent> {

    MedalPresent findByUserIdAndMedalId(Long userId, Integer medalId);

}
